var setting = {
	view : {
		showLine : false,
		showIcon : false,
		selectedMulti : false,
		dblClickExpand : false,
		expandSpeed : "",
	},
	check : {
		enable : true,
		chkStyle : "checkbox"
	},
	data : {
		simpleData : {
			enable : true,
			idkey : "id",
			pIdkey : "pId",
			rootPId : "null"
		},
		key : {
			children : "children"
		}
	}
};
var zNodes = null;
$.ajax({
	url : "/ads/check_citys",
	type : "GET",
	dataType : "json",
	cache : false,
	async : false,
	success : function(cityOrAreaList) {
		zNodes = cityOrAreaList
	}
});
$(document).ready(function() {
	$.fn.zTree.init($("#treeDemo"), setting, zNodes);
});